package entityDAOs;

import java.util.Date;
import java.util.List;
import java.util.Set;
import org.hibernate.LockMode;
import org.hibernate.Query;
import static org.hibernate.criterion.Example.create;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import entities.Team;

/**
 * A data access object (DAO) providing persistence and search support for Team
 * entities. Transaction control of the save(), update() and delete() operations
 * can directly support Spring container-managed transactions or they can be
 * augmented to handle user-managed Spring transactions. Each of these methods
 * provides additional information for how to configure it for the desired type
 * of transaction control.
 * 
 * @see entities.Team
 * @author MyEclipse Persistence Tools
 */

public class TeamDAO extends BaseHibernateDAO<Team,java.lang.Integer> {
	private static final Logger log = LoggerFactory.getLogger(TeamDAO.class);
	// property constants
	public static final String TEAM_NAME = "teamName";
	public static final String TEAM_IMG = "teamImg";
	public static final String TOTAL_POINTS = "totalPoints";
	public static final String INFO_TEXT = "infoText";

	public List<Team> findByTeamName(Object teamName) {
		return findByProperty(TEAM_NAME, teamName);
	}

	public List<Team> findByTeamImg(Object teamImg) {
		return findByProperty(TEAM_IMG, teamImg);
	}

	public List<Team> findByTotalPoints(Object totalPoints) {
		return findByProperty(TOTAL_POINTS, totalPoints);
	}

	public List<Team> findByInfoText(Object infoText) {
		return findByProperty(INFO_TEXT, infoText);
	}
}